{extend name="public:_base" /}

{block name="js"}
{include file="public/_validform"}
{/block}
{block name="main"}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会话列表 <a
        class="btn radius btn-success radius r" style="line-height:1.6em;margin-top:3px"
        href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="page-container">

    <form action="{:url(\''.\\think\\Request::instance()->controller().'/save')}" method="post"
          class="form form-horizontal" id="form">

        <table class=" table-border table-bg">

            <tbody>
            {volist name="list" id="vo"}

                    {eq name="vo.who" value="1"}
                        <tr>
                            <td colspan="2" align="right">

                                    {$vo.center}:[公众号]
                                <br>
                                    {$vo.create_time}
                            </td>
                        </tr>
                    {else/}
                        <tr>
                            <td colspan="2" align="left">
                                    <img src="{$data.headimgurl}" height="60" width="60">
                                {switch name="$vo.mtype" }
                                {case value="text" }{$vo.center}{/case}
                                {case value="image"}<a href="{$vo.center}" target="_blank"><img src="{$vo.center}" width="169" height="169"></a> {/case}
                                {default /}默认情况
                                {/switch}

                                    <br>
                                    {$vo.create_time}
                            </td>
                        </tr>
                    {/eq}


            {/volist}
            <tr>
                <th>
                    <label class="form-label">回复</label>
                </th>
                <td>
                    <textarea name="center" class="textarea"></textarea>
                </td>
            </tr>
            </tbody>

            <tfoot>
            <tr>
                <td colspan="2" align="center" >
                    <input name="openid" value="{$openid}" type="hidden"/>
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;重置&nbsp;&nbsp;">
                    <!-- <button onClick="window.history.back();" class="btn radius btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button> -->
                </td>
            </tr>
            </tfoot>

        </table>

    </form>
</div>
{/block}
